﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfControlDemo.ViewModels.Base;

namespace WpfControlDemo.ViewModels.控件.按钮控件
{
    public class RadioButtonWindowViewModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        public RadioButtonWindowViewModel()
        {
            IsStudent = true;
        }

        private bool isStudent;

        public bool IsStudent
        {
            get { return isStudent; }
            set
            {
                isStudent = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsStudent)));
            }
        }

        private bool isTeacher;

        public bool IsTeacher
        {
            get { return isTeacher; }
            set
            {
                isTeacher = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsTeacher)));
            }
        }

        private bool isAdmin;

        public bool IsAdmin
        {
            get { return isAdmin; }
            set
            {
                isAdmin = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsAdmin)));
            }
        }

        private bool isPrincipal;

        public bool IsPrincipal
        {
            get { return isPrincipal; }
            set
            {
                isPrincipal = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsPrincipal)));
            }
        }

        public CommandBase RadioButtonCommand
        {
            get => new CommandBase
            {
                DoExecute = new Action<object>(obj =>
                {

                })
            };
        }

        public CommandBase ButtonCommand
        {
            get => new CommandBase
            {
                DoExecute = new Action<object>(obj =>
                {

                })
            };
        }
    }
}
